﻿SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[SecurityRules](
	[ApplicationName] [varchar](256) NOT NULL,
	[ActionName] [varchar](512) NOT NULL,
	[Rule] [varchar](4000) NULL,
	[Description] [varchar](1000) NULL,
	[ShortName] [varchar](80) NULL,
	[Keywords] [varchar](512) NULL,
	[IconName] [varchar](256) NULL,
	[CreatedBy] [uniqueidentifier] NOT NULL,
	[CreatedOn] [datetime] NOT NULL,
	[UpdateBy] [uniqueidentifier] NOT NULL,
	[UpdateOn] [datetime] NOT NULL,
 CONSTRAINT [SecurityRules_Primary_Key] PRIMARY KEY CLUSTERED 
(
	[ApplicationName] ASC,
	[ActionName] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[SecurityRules] ADD  DEFAULT (newid()) FOR [CreatedBy]
GO

ALTER TABLE [dbo].[SecurityRules] ADD  DEFAULT (getdate()) FOR [CreatedOn]
GO

ALTER TABLE [dbo].[SecurityRules] ADD  DEFAULT (newid()) FOR [UpdateBy]
GO

ALTER TABLE [dbo].[SecurityRules] ADD  DEFAULT (getdate()) FOR [UpdateOn]
GO

